package com.beidu.lottery.call.entity.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.beidu.lottery.call.entity.common.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 奖品列表查询
 * @author tennyson
 * @date :2023/11/20 10:23
 * @description :
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ActivityPrizeListQuery extends PageQuery implements Serializable {

    @ApiModelProperty(value = "奖品名")
    private String prizeName;

    @ApiModelProperty(value = "奖品类型(0:实体奖品, 1:虚拟奖品, 2:积分奖品)")
    private Integer prizeType;

    @ApiModelProperty(value = "创建日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "创建日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "抽奖启用(0:未启用, 1:启用, 非必填)")
    private Integer prizeEnable;
}
